﻿<UserControl x:Class="ClientCenter.Controls.DayControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" SizeChanged="UserControl_SizeChanged" xmlns:sr="http://schemas.divelements.co.uk/wpf/sandribbon">
    <Canvas Name="ControlCanvas">
        <StackPanel Name="stackPanel1" Canvas.Left="0" Canvas.Top="0" CanVerticallyScroll="True" 
                    Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Canvas}}, Path=ActualWidth}" 
                    Height="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Canvas}}, Path=ActualHeight}">
        </StackPanel>



    </Canvas>

</UserControl>
